package org.jsystem.swttestingclient;

import junit.framework.SystemTestCase;

public class RobotTest extends SystemTestCase {
	private SwtTestingClient swtRobot = null;

	public void setUp() throws Exception{
		swtRobot  = (SwtTestingClient)system.getSystemObject("swt");
	}
	
//	public void testSendEnter(){
//		swtRobot.enterSpecialKey("Enter");
//	}
	
	public void testCreateFile(){
		swtRobot.selectMenuItem("&File/&New	Alt+Shift+N/File");
		swtRobot.waitForShellShowing("New File");
		swtRobot.enterString(System.currentTimeMillis() + ".txt");
		swtRobot.clickButton("&Finish");
		swtRobot.delay(1000);
		swtRobot.enterString("Welcome to SWT agent project");
	}
}
